package com.monkey.model.user;

import com.monkey.generator.model.TUser;

import java.math.BigDecimal;

/**
 * desc:
 * auth: chenxiaobin
 * data: 2018/1/9.
 */
public class User {
    private TUser user;
    private int monkeyNum;

    public User(TUser user) {
        this.user = user;
    }

    public int getMonkeyNum() {
        return monkeyNum;
    }

    public void setMonkeyNum(int monkeyNum) {
        this.monkeyNum = monkeyNum;
    }

    // user方法
    public int getId() {
        return user.getUserid();
    }

    public String getName() {
        return user.getName();
    }

    public void setName(String name) {
        user.setName(name);
    }

    public String getPhone() {
        return user.getPhone();
    }

    public String getPassword() {
        return user.getPassword();
    }

    public void setPassword(String password) {
        user.setPassword(password);
    }

    public int getHeadId() {
        return user.getHeadid();
    }

    public void setHeadId(int id) {
        user.setHeadid(id);
    }

    public String getHead() {
        return user.getHead();
    }

    public void setHead(String head) {
        user.setHead(head);
    }

    public String getWallet() {
        synchronized (this) {
            return user.getWallet();
        }
    }

    public void setWallet(String wallet) {
        synchronized (this) {
            user.setWallet(wallet);
        }
    }

    public int getPayPwd() {
        synchronized (this) {
            return user.getPaypwd();
        }
    }

    public void setPayPwd(int paypwd) {
        synchronized (this) {
            user.setPaypwd(paypwd);
        }
    }

    public BigDecimal getMoney() {
        synchronized (this) {
            return user.getMoney();
        }
    }

    public void setMoney(BigDecimal money) {
        synchronized (this) {
            user.setMoney(money);
        }
    }

    public BigDecimal getGold() {
        synchronized (this) {
            return user.getGold();
        }
    }

    public void setGold(BigDecimal gold) {
        synchronized (this) {
            user.setGold(gold);
        }
    }

    public BigDecimal getBonusTotal() {
        return user.getBonustotal();
    }

    public void setBonusTotal(BigDecimal bonus) {
        user.setBonustotal(bonus);
    }

    public int getLogincount() {
        return user.getLogincount();
    }

    public void setLogincount(Integer logincount) {
        user.setLogincount(logincount);
    }

    public boolean getEnable() {
        synchronized (this) {
            return user.getEnable();
        }
    }

    public void setEnable(boolean enable) {
        synchronized (this) {
            user.setEnable(enable);
        }
    }
    
    public Integer getLucky() {
        synchronized (this) {
            return user.getLucky();
        }
    }

    public void setLucky(Integer lucky) {
        synchronized (this) {
            user.setLucky(lucky);
        }
    }
}
